import ajax from '../utils/request.js'
// 发布文章页获取频道id
export const apiGetChannelId = () => {
  // 请求接口
  return ajax({
    method: 'GET',
    url: '/mp/v1_0/channels'
  })
}

export const queryArticles = params => {
  // 请求接口
  return ajax({
    method: 'GET',
    url: '/mp/v1_0/articles',
    params
  })
}
